package com.fzh.pojo.entity;

public class Cart {
	
	private Integer id;
	/**
	 * 链接用户表的外键id
	 */
	private Integer f_uid;
	/**
	 * 链接商品表的外键id
	 */
	private Integer f_pid;
	/**
	 * 商品的名称
	 */
	private String name;
	/**
	 * 商品的图片
	 */
	private String img;
	/**
	 * 商品的价格
	 */
	private Double price;
	/**
	 * 商品的尺寸大小
	 */
	private String size;
	/**
	 * 商品数量
	 */
	private Integer count;
	/**
	 * 商品所需的总额
	 */
	private Double totalSum;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getF_uid() {
		return f_uid;
	}
	public void setF_uid(Integer f_uid) {
		this.f_uid = f_uid;
	}
	public Integer getF_pid() {
		return f_pid;
	}
	public void setF_pid(Integer f_pid) {
		this.f_pid = f_pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public String getSize() {
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public Double getTotalSum() {
		return totalSum;
	}
	public void setTotalSum(Double totalSum) {
		this.totalSum = totalSum;
	}
	public Cart(Integer id, Integer f_uid, Integer f_pid, String name, String img, Double price, String size,
			Integer count, Double totalSum) {
		super();
		this.id = id;
		this.f_uid = f_uid;
		this.f_pid = f_pid;
		this.name = name;
		this.img = img;
		this.price = price;
		this.size = size;
		this.count = count;
		this.totalSum = totalSum;
	}
	public Cart() {
		super();
	}
	@Override
	public String toString() {
		return "cart [id=" + id + ", f_uid=" + f_uid + ", f_pid=" + f_pid + ", name=" + name + ", img=" + img
				+ ", price=" + price + ", size=" + size + ", count=" + count + ", totalSum=" + totalSum + "]";
	}
	public Cart(Integer f_uid, Integer f_pid, String name, String img, Double price, String size, Integer count,
			Double totalSum) {
		super();
		this.f_uid = f_uid;
		this.f_pid = f_pid;
		this.name = name;
		this.img = img;
		this.price = price;
		this.size = size;
		this.count = count;
		this.totalSum = totalSum;
	}
	
	
	
	
}
